using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ModChatRoomNotify : GeneratedMessageLite<ModChatRoomNotify, ModChatRoomNotify.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ModChatRoomNotify, ModChatRoomNotify.Builder>
		{
			private bool resultIsReadOnly;
			private ModChatRoomNotify result;
			protected override ModChatRoomNotify.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ModChatRoomNotify MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ModChatRoomNotify DefaultInstanceForType
			{
				get
				{
					return ModChatRoomNotify.DefaultInstance;
				}
			}
			public SKBuiltinString_t ChatRoomName
			{
				get
				{
					return this.result.ChatRoomName;
				}
				set
				{
					this.SetChatRoomName(value);
				}
			}
			public uint Status
			{
				get
				{
					return this.result.Status;
				}
				set
				{
					this.SetStatus(value);
				}
			}
			public Builder()
			{
				this.result = ModChatRoomNotify.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ModChatRoomNotify cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ModChatRoomNotify PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ModChatRoomNotify other = this.result;
					this.result = new ModChatRoomNotify();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ModChatRoomNotify.Builder Clear()
			{
				this.result = ModChatRoomNotify.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ModChatRoomNotify.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ModChatRoomNotify.Builder(this.result);
				}
				return new ModChatRoomNotify.Builder().MergeFrom(this.result);
			}
			public override ModChatRoomNotify BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ModChatRoomNotify.Builder MergeFrom(IMessageLite other)
			{
				if (other is ModChatRoomNotify)
				{
					return this.MergeFrom((ModChatRoomNotify)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ModChatRoomNotify.Builder MergeFrom(ModChatRoomNotify other)
			{
				return this;
			}
			public override ModChatRoomNotify.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ModChatRoomNotify.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ModChatRoomNotify._modChatRoomNotifyFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ModChatRoomNotify._modChatRoomNotifyFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (num3 != 16u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasStatus = input.ReadUInt32(ref this.result.status_);
						}
					}
					else
					{
						SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
						if (this.result.hasChatRoomName)
						{
							builder.MergeFrom(this.ChatRoomName);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.ChatRoomName = builder.BuildPartial();
					}
				}
				return this;
			}
			public ModChatRoomNotify.Builder SetChatRoomName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasChatRoomName = true;
				this.result.chatRoomName_ = value;
				return this;
			}
			public ModChatRoomNotify.Builder SetChatRoomName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasChatRoomName = true;
				this.result.chatRoomName_ = builderForValue.Build();
				return this;
			}
			public ModChatRoomNotify.Builder MergeChatRoomName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasChatRoomName && this.result.chatRoomName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.chatRoomName_ = SKBuiltinString_t.CreateBuilder(this.result.chatRoomName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.chatRoomName_ = value;
				}
				this.result.hasChatRoomName = true;
				return this;
			}
			public ModChatRoomNotify.Builder ClearChatRoomName()
			{
				this.PrepareBuilder();
				this.result.hasChatRoomName = false;
				this.result.chatRoomName_ = null;
				return this;
			}
			public ModChatRoomNotify.Builder SetStatus(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStatus = true;
				this.result.status_ = value;
				return this;
			}
			public ModChatRoomNotify.Builder ClearStatus()
			{
				this.PrepareBuilder();
				this.result.hasStatus = false;
				this.result.status_ = 0u;
				return this;
			}
		}
		public const int ChatRoomNameFieldNumber = 1;
		public const int StatusFieldNumber = 2;
		private static readonly ModChatRoomNotify defaultInstance;
		private static readonly string[] _modChatRoomNotifyFieldNames;
		private static readonly uint[] _modChatRoomNotifyFieldTags;
		private bool hasChatRoomName;
		private SKBuiltinString_t chatRoomName_;
		private bool hasStatus;
		private uint status_;
		private int memoizedSerializedSize = -1;
		public static ModChatRoomNotify DefaultInstance
		{
			get
			{
				return ModChatRoomNotify.defaultInstance;
			}
		}
		public override ModChatRoomNotify DefaultInstanceForType
		{
			get
			{
				return ModChatRoomNotify.DefaultInstance;
			}
		}
		protected override ModChatRoomNotify ThisMessage
		{
			get
			{
				return this;
			}
		}
		public SKBuiltinString_t ChatRoomName
		{
			get
			{
				return this.chatRoomName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public uint Status
		{
			get
			{
				return this.status_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasChatRoomName && this.hasStatus;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasChatRoomName)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.ChatRoomName);
				}
				if (this.hasStatus)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Status);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ModChatRoomNotify()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] modChatRoomNotifyFieldNames = ModChatRoomNotify._modChatRoomNotifyFieldNames;
			if (this.hasChatRoomName)
			{
				output.WriteMessage(1, modChatRoomNotifyFieldNames[0], this.ChatRoomName);
			}
			if (this.hasStatus)
			{
				output.WriteUInt32(2, modChatRoomNotifyFieldNames[1], this.Status);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasChatRoomName)
			{
				num ^= this.chatRoomName_.GetHashCode();
			}
			if (this.hasStatus)
			{
				num ^= this.status_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ModChatRoomNotify modChatRoomNotify = value as ModChatRoomNotify;
			return modChatRoomNotify != null && (this.hasChatRoomName == modChatRoomNotify.hasChatRoomName && (!this.hasChatRoomName || this.chatRoomName_.Equals(modChatRoomNotify.chatRoomName_))) && (this.hasStatus == modChatRoomNotify.hasStatus && (!this.hasStatus || this.status_.Equals(modChatRoomNotify.status_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ModChatRoomNotify, ModChatRoomNotify.Builder>.PrintField("ChatRoomName", this.hasChatRoomName, this.chatRoomName_, writer);
			GeneratedMessageLite<ModChatRoomNotify, ModChatRoomNotify.Builder>.PrintField("Status", this.hasStatus, this.status_, writer);
		}
		public static ModChatRoomNotify ParseFrom(byte[] data)
		{
			return ModChatRoomNotify.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ModChatRoomNotify MakeReadOnly()
		{
			return this;
		}
		public static ModChatRoomNotify.Builder CreateBuilder()
		{
			return new ModChatRoomNotify.Builder();
		}
		public override ModChatRoomNotify.Builder ToBuilder()
		{
			return ModChatRoomNotify.CreateBuilder(this);
		}
		public override ModChatRoomNotify.Builder CreateBuilderForType()
		{
			return new ModChatRoomNotify.Builder();
		}
		public static ModChatRoomNotify.Builder CreateBuilder(ModChatRoomNotify prototype)
		{
			return new ModChatRoomNotify.Builder(prototype);
		}
		static ModChatRoomNotify()
		{
			ModChatRoomNotify.defaultInstance = new ModChatRoomNotify().MakeReadOnly();
			ModChatRoomNotify._modChatRoomNotifyFieldNames = new string[]
			{
				"ChatRoomName",
				"Status"
			};
			ModChatRoomNotify._modChatRoomNotifyFieldTags = new uint[]
			{
				10u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.ModChatRoomNotify.Descriptor, null);
		}
	}
}
